<%@page import="youleche.com.model.MFixInfo"%>
<%@page import="youleche.com.controler.controler.PageDataForBussinessControler"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html;charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>美乐车-全国最大的车辆信息交易平台</title>

<link href="image/meileche.jpg" rel="shortcut icon"/>
<link rel="stylesheet" href="css/home.css"/>
<script type="text/javascript" src="js/common/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/common/jquery.cookie.js"></script>
<script type="text/javascript" src="/meileche/layer/layer.js"></script>
<script type="text/javascript" src="js/fixs.js"></script>
</head>
<body>
	<div class="body">
		<div class="backgroundBody">
			<%@include file="top.jsp" %>
			<%@include file="nav.jsp" %>
		</div>
		<div class="mainBody">
			<div style="width:800px;color:#666;font-size:20px;padding:10px;padding-bottom:0px;line-height: 60px;">
				美乐车售后信息                                  [收藏车]  &nbsp;&nbsp;&nbsp;&nbsp;<a style="font-size:12px;color:#1c86ee;text-decoration:underline;" href="fix.jsp">发布售后信息</a><span  style="font-size:12px;color:red;">（商家才能使用）</span>
				<a style="font-size:12px;color:#1c86ee;text-decoration:underline;" href="list.jsp">发布其他信息</a>
			</div>
			<div style="width:1000px;padding:10px;line-height: 20px;" id="fixInfoDiv">
				<%
					List<MFixInfo> fixs = PageDataForBussinessControler.getFixInfoList();
				
					if(fixs == null || fixs.size() ==0){
						return;
					}else{
						for(int i =0;i< fixs.size();i++){
							String imgUrl = PageDataForBussinessControler.getSellerImageSrcByUserId(fixs.get(i).getSellerId());
							if("".equals(imgUrl) || "0".equals(imgUrl)){
								imgUrl = "no_audit_icon.jpg";
							}
							%>
							
							<div style="margin: 7px 7px 20px 7px;float:left;border: 1px solid #ccc;width: 300px;height:280px;">
							<div style="height: 90px;border-bottom:1px solid #ccc;width: 298px;">
								
								<img alt="商家修理图片" src="userImage/<%= imgUrl%>">
							</div>
							<div style="height: 110px;width: 290px;padding:5px;">
								
								店铺名称：<%= fixs.get(i).getShopName() %>
								<br/>
								地&nbsp;&nbsp;&nbsp;&nbsp;址：<%= fixs.get(i).getA1() %> [查看地图]  
								<br/>
								是否上门：<%= fixs.get(i).getIsGoHome().equals("0") == true ? "是" : "否" %>
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								&nbsp;&nbsp;<a href="#" style="color:#999;font-size:14px;" onclick="zixun('<%=imgUrl%>','<%= fixs.get(i).getShopName() %>');"><img src="image/zixun_icon.png" alt="咨询" title="咨询"/>咨询</a>
								
							
							</div>
							<div style="height: 60px;width: 300px; vertical-align: middle;text-align:center;padding-top:10px;">
								<input type="button" class="detail-btn"  value="详细" onclick="details('<%=fixs.get(i).getFixId()%>')"/>
								<input class="detail-btn" type="button" value="收藏" />
							</div>
						</div>
							<%
						}
					}
				%>
				
				
				
			</div>
			<div style="text-align:center;float:left;width: 1000px;height:100px;">
				<input type="button" class="detail-btn3" onclick="getMore();"  value="查看更多"/>
			</div>
			<div style="width:1000px;padding:10px;line-height: 20px;height:100px;float:left;"></div>
			
	
		</div>
	</div>
	<div id="contactDiv" style="display:none;width:400px;">
		<div style="float:left;width:400px;height:60px;line-height:30px;text-align:center;margin-top:10px;" id="txtDivShopName">
		</div>
		<div style="float:left;width:400px;border-bottom:1px solid #ccc;height:90px;text-align:center;">
			<img id="imgShop"/>
		</div>
		<div style="float:left;width:380px;padding:10px;height:40px;text-align:center;">
				<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=449614531&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:449614531:51" alt="点击这里给我发消息" title="点击这里给我发消息"/></a>
		</div>
	</div>
	<%@include file="foot.jsp" %>
</body>
</html>
